package com.Shop.Center.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Login {
    @Autowired
    UserService userService;
    public static Boolean is_login=false;
    public Boolean user_login(String name,String password){
        is_login=userService.get(name).get(0).getPassword().equals(password);
        return is_login;
    }
}
